package com.nectech.entity;

import com.nectech.constant.Constant;
import com.nectech.util.ImageUtil;

import javax.imageio.ImageIO;
import java.io.IOException;
import java.net.URL;

/**
 * @Author: 浅小北
 * @ClassName: Test
 * @Description: TODO
 * @Date: 2021/1/27 20:45
 * @Since: version-1.0
 */
public class Test {
    public static void main(String[] args) throws IOException {
        /*//读取本地图片输入流
        FileInputStream inStream = new FileInputStream(
                Constant.IMAGE_PATH_PRE + "icon\\logo" + Constant.IMAGE_PATH_SUF);

        //byte数组用于存放图片字节数据
        byte[] buff = new byte[inStream.available()];

        inStream.read(buff);
        inStream.close();*/

        //设置发送到客户端的响应内容类型


        /*OutputStream outStream = response.getOutputStream();
        out.write(buff);
        out.close();*/
        URL url = ImageUtil.class.getClassLoader().getResource(Constant.IMAGE_PATH_PRE
        + "groundpic/foreground/maple.psd");
        ImageIO.read(url);

        /*URL url = ImageUtil.class.getClassLoader().getResource(Constant.IMAGE_PATH_PRE
        + "icon/logo" +Constant.IMAGE_PATH_SUF);
        ImageIO.read(url);*/
    }


}
